﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NGourd.Core.Steps;

namespace BasicSample.Features.Steps
{
    [Steps]
    class GSTSteps
    {
        public void Before()
        {
            GSTCalculator.Instance.Clear();
        }

        [Step(@"a GST of (\d+)% is applicable on (\w+)")]
        public void ApplyGST(string amount, string productName)
        {
            var amt = Double.Parse(amount) / 100.0;
            GSTCalculator.Instance.RegisterGST(productName, amt);
        }
    }
}
